package com.ruoyi.common.entity.CoreEntity;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;

/**
 * 用户签到记录对象 sign_ins
 * 
 * @author 亢哲
 * @date 2025-08-07
 */
public class SignIns extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 签到记录ID */
    private Long id;

    /** 用户ID */
    @Excel(name = "用户ID")
    private Long userId;

    /** 签到日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "签到日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date signDate;

    /** 连续签到天数 */
    @Excel(name = "连续签到天数")
    private Long continuousDays;

    /** 本次签到积分 */
    @Excel(name = "本次签到积分")
    private Long pointsEarned;

    /** 积分余额 */
    private Long pointsAfterSign;

    /** 签到类型 */
    @Excel(name = "签到类型")
    private Long signType;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }

    public void setUserId(Long userId) 
    {
        this.userId = userId;
    }

    public Long getUserId() 
    {
        return userId;
    }

    public void setSignDate(Date signDate) 
    {
        this.signDate = signDate;
    }

    public Date getSignDate() 
    {
        return signDate;
    }

    public void setContinuousDays(Long continuousDays) 
    {
        this.continuousDays = continuousDays;
    }

    public Long getContinuousDays() 
    {
        return continuousDays;
    }

    public void setPointsEarned(Long pointsEarned) 
    {
        this.pointsEarned = pointsEarned;
    }

    public Long getPointsEarned() 
    {
        return pointsEarned;
    }

    public void setPointsAfterSign(Long pointsAfterSign) 
    {
        this.pointsAfterSign = pointsAfterSign;
    }

    public Long getPointsAfterSign() 
    {
        return pointsAfterSign;
    }

    public void setSignType(Long signType) 
    {
        this.signType = signType;
    }

    public Long getSignType() 
    {
        return signType;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("userId", getUserId())
            .append("signDate", getSignDate())
            .append("continuousDays", getContinuousDays())
            .append("pointsEarned", getPointsEarned())
            .append("pointsAfterSign", getPointsAfterSign())
            .append("signType", getSignType())
            .toString();
    }
}
